<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
  <meta http-equiv="Content-type" content="text/html; charset=utf-8">
  <title>Kings Hockey <%= ": #{@title} " if @title %></title>
  <%= stylesheet_link_tag "screen", :media => "screen" %>
</head>

<body class="<%= controller.controller_name %>">
<div id="wrapper"> 
  <div id="logo">
  <%= link_to_unless_current(
        image_tag("header.jpeg", :alt => "Kings Hockey"), 
        :controller => "homepage") %>

  </div>

  <div id="nav" >
    <ul>
      <li id="nav_home">
        <%= link_to "Home", :controller => "homepage" %>
      </li>
      <li id="nav_meetings">
        <%= link_to "Schedule", :controller => "schedule" %>
      </li>
      <li id="nav_users">
        <%= link_to "Team", :controller => "team" %>
      </li>
      <li id="nav_users">
        <%= link_to "News", :controller => "news" %>
      </li>
	<li id="nav_users">
        <%= link_to "Fan Zone", :controller => "events" %>
      </li>
	
    </ul>
        <div>
    <% if logged_in? %>
      <%= link_to "your profile", :controller => "user", 
                                  :action     => "show", 
                                  :id         => @current_user.id %>
      &nbsp;
      <%= link_to "logout", :controller => "sessions", 
                            :action     => "destroy" %>
    <% else %>
      <%= link_to "join us", :controller => "user", :action => "new" %>
      &nbsp;
      <%= link_to "login", :controller => "sessions", :action => "new" %>
    <% end %>
    </div>
  </div>
    
   
  

  <div id="content">
    <%= yield :layout %>
  </div>

  <div id="footer">&nbsp;</div>
</div>
</body>
</html>
